/**
 * Created by Fantasy on 2016/4/4.
 */
define(function (require) {
    'use strict';
    var vodApp = require('app/vodApp');
    return {
        controller: function (scope, param) {
            this.scope = scope;
            var vodInfo = ePart.app.iptv.queryVodDetailById();
            var imgContent = {
                imgUrl: vodInfo.poster.largeImage || ''
            };
            scope.imgObject = imgContent;
            scope.btnTextList = [{
                btnTitle: $.i18n.text('trailersText')
            }, {
                btnTitle: $.i18n.text('vod_collect')
            }, {
                btnTitle: $.i18n.text('vod_pay')
            }];
            scope.showAllText = $.i18n.text('showAllText');
            scope.infoHeader = $.i18n.text('infoHeader');
            scope.filmDuration = $.i18n.text('filmDuration');
            scope.produceYear = $.i18n.text('produceYear');
            scope.productionArea = $.i18n.text('productionArea');
            scope.filmLanguage = $.i18n.text('filmLanguage');
            scope.genres = $.i18n.text('genres');
            scope.videoQuality = $.i18n.text('videoQuality');
            scope.videoDirection = $.i18n.text('videoDirection');
            scope.isShowCollection = true;
            scope.vodInfomation = vodInfo;
            scope.tipsTitle = $.i18n.text('tipsTitle');
            this.scope.startCount = '(' + vodInfo.comments + ')';
            this.scope.starsList = vodApp.commentCalculation(vodInfo.comments);
        }


    }
});